<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            padding: 0;
            margin: 0;
        }
        
        div {
            background-color: pink;
            width: 10rem;
            height: 10rem;
        }
        
        @media screen and (device-width:320px) {
            html {
                font-size: 16px;
            }
        }
        
        @media screen and (device-width:360px) {
            html {
                font-size: 18px;
            }
        }
        
        @media screen and (device-width:375px) {
            html {
                font-size: 18.75px;
            }
        }
        
        @media screen and (device-width:414px) {
            html {
                font-size: 20.07px;
            }
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>